package com.ruoyi.amuse.announcements.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 发布公告对象 club_announcements
 * 
 * @author juwujie
 * @date 2024-07-19
 */
public class ClubAnnouncements extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 公告ID */
    @Excel(name = "公告ID")
    private Long announcementId;

    /** 社团ID */
    @Excel(name = "社团ID")
    private Long clubId;
    /* 社团名称*/
    private String clubName;

    /** 公告标题 */
    @Excel(name = "公告标题")
    private String title;

    /** 公告内容 */
    @Excel(name = "公告内容")
    private String content;

    /** 公告图片地址 */
    @Excel(name = "公告图片地址")
    private String photo;

    /** 公告发布日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ")
    @Excel(name = "公告发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishDate;

    /** 删除状态（0存在 2删除） */
    @Excel(name = "删除状态", readConverterExp = "0=存在,2=删除")
    private String delFlag;

    public String getClubName() {
        return clubName;
    }

    public void setClubName(String clubName) {
        this.clubName = clubName;
    }

    public void setAnnouncementId(Long announcementId)
    {
        this.announcementId = announcementId;
    }

    public Long getAnnouncementId() 
    {
        return announcementId;
    }
    public void setClubId(Long clubId) 
    {
        this.clubId = clubId;
    }

    public Long getClubId() 
    {
        return clubId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setPublishDate(Date publishDate) 
    {
        this.publishDate = publishDate;
    }

    public Date getPublishDate() 
    {
        return publishDate;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("announcementId", getAnnouncementId())
            .append("clubId", getClubId())
                .append("clubName", getClubName())
            .append("title", getTitle())
            .append("content", getContent())
            .append("photo", getPhoto())
            .append("publishDate", getPublishDate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
